package util;

import java.util.Arrays;

public class MyClass implements Cloneable {
    private int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int[] getArray() {
        return array;
    }

    public void setArray(int[] array) {
        this.array = array;
    }

    private String name;
    private int[] array;

    public MyClass() {
    }

    // 构造方法、Getter和Setter略
    
    @Override
    protected MyClass clone() throws CloneNotSupportedException {
        return (MyClass) super.clone();
    }

    @Override
    public String toString() {
        return "MyClass{" +
                "num=" + num +
                ", name='" + name + '\'' +
                ", array=" + Arrays.toString(array) +
                '}';
    }
}

